package org.example.stdent.mapper;

/*
* 接口的实现类
* 实现接口中的方法 填充方法体
*
* */
/*
public class lmpl implements studentmapper{

    @Override
    public student selectStudent(int id) {
        //经过封装，直接通过类名调用 获得SQL session的方法
        SqlSession sqlSession = sqlsessionutil.getSqlSession();
        student o = sqlSession.selectOne("aaa.getid", id);
        //查询单条语句
        return o;
    }

    @Override
    public List<student> selectAllStudent() {
        SqlSession sqlSession = sqlsessionutil.getSqlSession();
        List<student> objects = sqlSession.selectList("aaa.getall");
        return objects;
    }

    @Override
    public void insertStudent(student student) {
        SqlSession sqlSession = sqlsessionutil.getSqlSession();
        sqlSession.insert("aaa.insert", student);
        sqlSession.commit();

    }

    @Override
    public void updateStudent(student student) {
        SqlSession sqlSession = sqlsessionutil.getSqlSession();
        sqlSession.update("aaa.update", student);
        sqlSession.commit();

    }

    @Override
    public void deleteStudent(int id) {
        SqlSession sqlSession = sqlsessionutil.getSqlSession();
        sqlSession.delete("aaa.delete", id);
        sqlSession.commit();

    }
}
*/
